import request from '@/utils/request'

export function getTenants() {
  return request({
    // url: 'edu/vue-admin-template/user/login',
    url: 'tenants',
    method: 'get',
  })
}

export function addTenant(data) {
  return request({
    // url: 'edu/vue-admin-template/user/login',
    url: 'tenants',
    method: 'post',
    data
  })
}

export function updateTenant(id,data) {
  return request({
    // url: 'edu/vue-admin-template/user/login',
    url: `tenants`,
    method: 'put',
    data
  })
}

export function deleteTenant(id) {
  return request({
    url: `tenants/${id}`,
    method: 'delete'
  })
}
